class User {
  String _accountName;
  int _employeeSnapId;
  String _privateKey;
  String _token;
  int _role;
  int _userID;

  User.fromJson(Map<String, dynamic> json)
      : _accountName = json['accountName'],
        _employeeSnapId = json['employeeSnapId'],
        _privateKey = json['privateKey'],
        _token = json['token'],
        _role = json['role'],
        _userID = json['userID'];

  Map<String, dynamic> toJson() => {
        'accountName': accountName,
        'employeeSnapId': employeeSnapId,
        'privateKey': privateKey,
        'token': token,
        'role': role,
        'userID': userID,
      };

  String get accountName => _accountName;

  set accountName(String value) {
    _accountName = value;
  }

  int get employeeSnapId => _employeeSnapId;

  set employeeSnapId(int value) {
    _employeeSnapId = value;
  }

  String get privateKey => _privateKey;

  set privateKey(String value) {
    _privateKey = value;
  }

  String get token => _token;

  set token(String value) {
    _token = value;
  }

  int get role => _role;

  set role(int value) {
    _role = value;
  }

  int get userID => _userID;

  set userID(int value) {
    _userID = value;
  }
}
